﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_ViewOnline : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CurrentAccount.CheckSessionTimeOut(this);
        if(!IsPostBack)
        {
            BindData();
        }
    }

    private void BindData()
    {
        var list = HZ.BidSystem.BLL.BLL_Cache.GetBindList();


        lblmsg.Text = string.Format("当前在线用户{0}个，最高峰在线{1}个，最高峰时间{2}。", list.Count, HZ.BidSystem.BLL.BLL_Cache.MaxCount, HZ.BidSystem.BLL.BLL_Cache.MaxCountDataTime);
        gv.DataSource = list;
        gv.DataBind();
    }
}
